package openbang.account.service.intf;

import java.util.List;

import openbang.account.service.entity.MsgAsyn;
import openbang.account.service.entity.MsgReceive;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("msgService")
public interface MsgServiceAsync{

	void getReceiveListMsg(int pageNo,int pageCount,AsyncCallback<List<MsgReceive>> callback);

	void getArchiveListMsg(int pageNo, int pageCount,
			AsyncCallback<List<MsgReceive>> callback);

	void deleteMsg(Long[] msgId, AsyncCallback<Integer> callback);

	void sendMsg(MsgAsyn msg, String[] receivers,
			AsyncCallback<Integer> callback);

	void archiveMsg(Long[] msgId, AsyncCallback<Integer> callback);

	void countArchiveMsg(AsyncCallback<Integer> callback);

	void countReceiveMsg(AsyncCallback<Integer> callback);

	void getListMsg(int msgStatus, int pageNo, int pageCount,
			AsyncCallback<List<MsgReceive>> callback);

	void doSetReadMsg(Long msgId, AsyncCallback<Integer> callback);

}
